package com.richpay.basejava.base09;

import java.util.Date;

public class ExtendsDemo {

    public static void main(String [] args){
//        Person person=new Person();
//        Date date=new Date();
//        person.birthDate=date;
//        person.name="张三";
//        person.age=13;
//        System.out.println("【"+person.getInfo()+"】");
//
//        StudentDemo studentDemo=new StudentDemo();
//        studentDemo.school="杭州东城中学";
//        studentDemo.birthDate=date;
//        person.name="李四";
//        person.age=14;
//        System.out.println("【"+studentDemo.getInfo()+"】");
//
//        Student student=new Student();
//        student.school="浙江师范大学";
//        student.birthDate=date;
//        student.age=20;
//        student.name="王五";
//        System.out.println("【"+student.getInfo()+"】");
//        System.out.println("====================分================割=============线=================");

//        Animal animal=new Animal();
//        animal.eat();
//        System.out.println("==============================");
//
//        Dog dog=new Dog();
//        dog.eat();
//        dog.sleep();
//        dog.lookDoor();
//        System.out.println("==============================");
//
        Pig pig=new Pig();
        pig.eat();
        pig.drink();
        pig.sleep();
        pig.gongDi();

        Cat cat=new Cat();
        cat.drink();
    }
}
